/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package control;

import comm.Messenger;

/**
 *
 * @author dheath
 */
public class Shoot implements TankAction 
{
    public Shoot()
    {
        
    }
    public void performAction(Messenger msgr, int botId)
    {
        String resp = msgr.sendCommand("shoot " + botId);
        while(resp == null)
        {
            resp = msgr.sendCommand("shoot " + botId);
        }
            
    }
    
    public double getError()
    {
        return 0.0;
    }
}
